package com.suxin.websocket.session;

import javax.websocket.Session;

/**
 * @author Tang
 * @classname SessionHolder
 * @description [  ]
 * @date 2022/3/24 10:22
 */
public interface SessionHolder {

    /**
     * addSession
     * @param session
     * @param key
     */
    public void addSession(Session session, String key);

    /**
     * removeSession
     * @param key
     */
    public void removeSession(String key);

    /**
     * getSession
     * @param key
     * @return
     */
    public Session getSession(String key);

}
